package org.thrift.service.impl;

import org.apache.thrift.TException;
import org.thrift.service.*;

/**
 * @author donald
 * 2018年3月12日
 * 下午2:06:51
 */
public class QueryServiceImpl implements QueryService.Iface {
	@Override
	public QueryResult query(int queryCode) throws TException {
		QueryResult result = new QueryResult();
		if (queryCode == 1) {
			result.code = 1;
			result.msg = "success";
		} else {
			result.code = 0;
			result.msg = "fail";
		}
		return result;
	}

}
